package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the ORG_CTAS database table.
 * 
 */
@Entity
@Table(name="ORG_CTAS")
public class OrgCta implements Serializable {
	private static final long serialVersionUID = 1L;
	private OrgCtaPK id;
	private String fgAdmin;
	private PeJuri peJuri;
	private Cuenta cuenta;

    public OrgCta() {
    }


	@EmbeddedId
	public OrgCtaPK getId() {
		return this.id;
	}

	public void setId(OrgCtaPK id) {
		this.id = id;
	}
	

	@Column(name="FG_ADMIN", length=1)
	public String getFgAdmin() {
		return this.fgAdmin;
	}

	public void setFgAdmin(String fgAdmin) {
		this.fgAdmin = fgAdmin;
	}


	//bi-directional many-to-one association to PeJuri
    @ManyToOne
	@JoinColumn(name="PE_JURI_ID", nullable=false, insertable=false, updatable=false)
	public PeJuri getPeJuri() {
		return this.peJuri;
	}

	public void setPeJuri(PeJuri peJuri) {
		this.peJuri = peJuri;
	}
	

	//bi-directional many-to-one association to Cuenta
    @ManyToOne
	@JoinColumn(name="CUENTA_ID", nullable=false, insertable=false, updatable=false)
	public Cuenta getCuenta() {
		return this.cuenta;
	}

	public void setCuenta(Cuenta cuenta) {
		this.cuenta = cuenta;
	}
	
}